package com.sanyang.logistics.zhd.dao;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.sanyang.logistics.pojo.DriverDim;
import com.sanyang.logistics.zhd.mapper.DriverMapper;


@Repository("drdao")
public class DriverDaoImp implements DriverDao{
   
	@Autowired 
	private DriverMapper mapper;
	
	@Override
	public List<DriverDim> selectDriver(DriverDim driverDim) {
		List<DriverDim> selectDriver = mapper.selectDriver(driverDim); 
		return selectDriver;
	}  

	@Override
	public void delDriver(Integer driver_id) {
		mapper.delDriver(driver_id);
	}

	@Override
	public void addOne(DriverDim driverDim) {
		mapper.addOne(driverDim);
		
	}

	@Override
	public void upDriver(DriverDim driverDim) {
		mapper.upDriver(driverDim);
	}

	@Override
	public DriverDim selectOne(Integer driver_id) {
		
		return mapper.selectOne(driver_id);
	}

	@Override
	public DriverDim selectByLicense(DriverDim driverDim) {
		
		return mapper.selectByLicense(driverDim);
	}

}
